/**
 * Created by yu on 16/8/23.
 */
var fs = require('fs');
var http = require('http');
var mime = require('mime');
var path = require('path');
var url = require('url');
var server = http.createServer(function(request,response){
    var urlObj = url.parse(request.url,true);
    response.writeHead(200,{'Content-Type':'text/html;charset=utf8'});
    if(urlObj.pathname==='/index.html'){
        response.write(urlObj.query.num+'苹果');
    }
})
server.listen('8083','localhost');